package com.liufei1988;

import com.liufei1988.service.MessageService;

public class MessagePrint {
    final private MessageService messageService;
    
    public MessagePrint(MessageService messageService){
        this.messageService=messageService;
    }
    
    public void  printMessage(){
        System.out.println(this.messageService.getMessage());
    }
}
